﻿@model OplDataEntry.Models.PlayerTeamSeason

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>PlayerTeamSeason</legend>

        @Html.HiddenFor(model => model.ID)

        <div class="editor-label">
            @Html.LabelFor(model => model.PlayerId, "Player2")
        </div>
        <div class="editor-field">
            @Html.DropDownList("PlayerId", String.Empty)
            @Html.ValidationMessageFor(model => model.PlayerId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.SeasonId, "Season")
        </div>
        <div class="editor-field">
            @Html.DropDownList("SeasonId", String.Empty)
            @Html.ValidationMessageFor(model => model.SeasonId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TeamId, "Team")
        </div>
        <div class="editor-field">
            @Html.DropDownList("TeamId", String.Empty)
            @Html.ValidationMessageFor(model => model.TeamId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FixtureId)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FixtureId)
            @Html.ValidationMessageFor(model => model.FixtureId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Run6)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Run6)
            @Html.ValidationMessageFor(model => model.Run6)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Run4)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Run4)
            @Html.ValidationMessageFor(model => model.Run4)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Run3)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Run3)
            @Html.ValidationMessageFor(model => model.Run3)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Run2)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Run2)
            @Html.ValidationMessageFor(model => model.Run2)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Run1)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Run1)
            @Html.ValidationMessageFor(model => model.Run1)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Dot)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Dot)
            @Html.ValidationMessageFor(model => model.Dot)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.OutBy)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.OutBy)
            @Html.ValidationMessageFor(model => model.OutBy)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.BallsFaced)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.BallsFaced)
            @Html.ValidationMessageFor(model => model.BallsFaced)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CaughtBy, "Player1")
        </div>
        <div class="editor-field">
            @Html.DropDownList("CaughtBy", String.Empty)
            @Html.ValidationMessageFor(model => model.CaughtBy)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.RunOutBy, "Player3")
        </div>
        <div class="editor-field">
            @Html.DropDownList("RunOutBy", String.Empty)
            @Html.ValidationMessageFor(model => model.RunOutBy)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.BowledBy, "Player")
        </div>
        <div class="editor-field">
            @Html.DropDownList("BowledBy", String.Empty)
            @Html.ValidationMessageFor(model => model.BowledBy)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Wickets)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Wickets)
            @Html.ValidationMessageFor(model => model.Wickets)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Catches)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Catches)
            @Html.ValidationMessageFor(model => model.Catches)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Hatricks)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Hatricks)
            @Html.ValidationMessageFor(model => model.Hatricks)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Wide)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Wide)
            @Html.ValidationMessageFor(model => model.Wide)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.NoBall)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.NoBall)
            @Html.ValidationMessageFor(model => model.NoBall)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.BallsBowled)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.BallsBowled)
            @Html.ValidationMessageFor(model => model.BallsBowled)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.RunsGiven)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RunsGiven)
            @Html.ValidationMessageFor(model => model.RunsGiven)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
